package com.jishaokang.service;

import com.jishaokang.base.Result;
import com.jishaokang.model.dto.Course;
import com.jishaokang.model.dto.Learn;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by NANA_Final on 2019/6/21.
 */
public interface CourseService {

    Result selectCourse(Course course);

    Result selectCourseByLearnTotalDesc(Course course);

    Result selectCourseByCostAsc(Course course);

    Result selectCourseByCostDesc(Course course);

    Result selectCourseByCostFree(Course course);

    Result selectCourseByCourseTimeAsc(Course course);

    Result selectCourseByCourseTimeDesc(Course course);
    Result selectCourseByLabelFirst(Course course);

    Result selectCourseByLabelSecond(Course course);

    Result selectCourseByLabelThird(Course course);


    Result selectCourseByTeacherName(Course course);

    Result selectCourseByCourseNameVague(Course course);



    Result selectCourseByCourseId(Course course);

    Result addCourse(Course course);

    Result updateCourse(Course course);

    Result deleteCourse(Course course);

    Result selectCourseByUserId(Course course);

    Result selectCourseByTeacherId(Course course);

    Result updateCourseImage(String token, Integer courseId, MultipartFile courseImageFile, HttpServletRequest request) throws IOException;


    Result selectCourseByTeacherNameAndCourseNameVague(Course course);

    Result selectCourseByTeacherNameOrCourseNameVague(Course course);
}
